projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cd7257
)
settings: Avoid one case of g_object_notify
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 7 Sep 2015 15:34:41 +0000
(11:34 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 7 Sep 2015 15:36:37 +0000
(11:36 -0400)
We already have the GParamSpec in hands, lets just use it instead
of looking it up again.
gtk/gtksettings.c
patch
|
blob
|
history
diff --git
a/gtk/gtksettings.c
b/gtk/gtksettings.c
index 1d2166ad83e161efffd68cf19b94ec55ca43a8b5..41a17c523c2d2b740a50566213a76c7d761bf566 100644
(file)
--- a/
gtk/gtksettings.c
+++ b/
gtk/gtksettings.c
@@
-2833,7
+2833,7
@@
_gtk_settings_handle_event (GdkEventSetting *event)
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (settings), event->name);
if (pspec)
- g_object_notify
(G_OBJECT (settings), pspec->name
);
+ g_object_notify
_by_pspec (G_OBJECT (settings), pspec
);
}
static void